package com.huibei.wateradmin.authority.repository;

import com.huibei.wateradmin.authority.domain.Menu;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by wanglinlin on 2016/7/15.
 */
public interface MenuRepository extends JpaRepository<Menu, Long> {
    List<Menu> findByParentMenuIsNull();

    List<Menu> findByUrl(String servletPath);
}
